import Vue from 'vue'
import Vuex from 'vuex'

import home from './modules/home.js'
import user from './modules/user.js'
import editor from './modules/editor.js'
import loading from './modules/loading.js'

Vue.use(Vuex); //vue的插件机制

//Vuex.Store 构造器选项
const store = new Vuex.Store({
	modules: {
		home,
		user,
		editor,
		loading
	}
})
export default store
